package com.example.entity.emp;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("sys_permission")
public class SysPermission {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long parentId;
    
    private String name;
    
    private Integer type;
    
    private String permissionCode;
    
    private String path;
    
    private String icon;
    
    private String component;
    
    private Integer sort;
    
    private Integer status;
    
    private LocalDateTime createdTime;
    
    private LocalDateTime updatedTime;
    
    @TableLogic
    private Integer deleted;
    
    @TableField(exist = false)
    private String parentName;
    
    @TableField(exist = false)
    private Boolean hasChildren;
} 